mod cli;
mod config;
mod api;
mod utils;

use clap::Parser;
use cli::Cli;
use std::process;
use colored::*;

#[tokio::main]
async fn main() {
    let cli = Cli::parse();
    
    if let Err(e) = cli.run().await {
        eprintln!("{}: {}", "错误".red(), e);
        process::exit(1);
    }
}